import { axios } from '@/utils/request'

// 上传应用logo
export function uploadLogoImg(data) {
  return axios({
    url: '/onlcode/file/uploadLogoImg',
    method: 'post',
    data
  })
}

// 根据文件路径获取文件流
export function getByteByPath(data) {
  return axios({
    url: '/onlcode/file/getByteByPath',
    method: 'get',
    params: data,
    responseType: 'blob',
    headers: {
      forceResove: true
    }
  })
}